package com.zhijian.medical.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum ExperimentFishSampleStatusEnum {

    NEW(0, "新建"),
    WAIT_ZB(20, "待准备"),
    YZB(1, "已准备"),
    JCZ(2, "检测中"),
    END(3, "检测结束"),
    CXSY(4,"重新送样"),
    CXJC(5,"重新检测"),
    CXZJ(6,"重新杂交"),
    FBG(7,"发报告"),
    TF(8,"退费"),
    STOP(98, "停止检测"),
    BHG(99, "不合格");

    private Integer code;
    private String type;

    public static ExperimentFishSampleStatusEnum getByCode(Integer code) {
        ExperimentFishSampleStatusEnum[] values = ExperimentFishSampleStatusEnum.values();
        for (ExperimentFishSampleStatusEnum anEnum : values) {
            if (anEnum.getCode().equals(code)) {
                return anEnum;
            }
        }
        return null;
    }
}
